package com.wwk.dao;

import com.github.pagehelper.Page;
import com.wwk.entity.QueryPageBean;
import com.wwk.pojo.CheckItem;

import java.util.List;

/**
 * @Classname CheckItemDao
 * @Description TODO
 * @Date 2020/10/30 11:44
 * @Created by com.wwk
 * @Author com.wwk
 */
public interface CheckItemDao {

    //添加检查项
    public void add(CheckItem checkItem);

    //有条件的查询
    public Page<CheckItem> selectByCondition(String queryString);

    //根据编号删除检查项
    public void deleteById(int id);

    //检查检查组中是否有该检查项
    public long findCountByCheckItemId(Integer id);

    //根据编号编辑检查项
    public void edit(CheckItem item);

    //根据编号查找检查项
    public CheckItem findById(Integer itemId);
}
